import java.util.*;

public class Test {
    public static void main (String [] args)
    {
        String str = "hello world! This is my room, and please come in. Make yourself at home.";
        Scanner sc = new Scanner(str);
        sc.useDelimiter("[^\\w]");
        while (sc.hasNext()){
            System.out.println(sc.next());
        }
    }
}
